import Cookies from 'js-cookie'

const WX_OPEN_KEY_JW_ID = 'WX_OPEN_KEY_JW_ID'

const WX_OPEN_KEY_APP_ID = 'WX_OPEN_KEY_APP_ID'

export function getWxId() {
  return Cookies.get(WX_OPEN_KEY_JW_ID)
}

export function setWxId(wxid) {
  return Cookies.set(WX_OPEN_KEY_JW_ID, wxid)
}

export function removeWxId() {
  return Cookies.remove(WX_OPEN_KEY_JW_ID)
}
export function getWxAppId() {
  return Cookies.get(WX_OPEN_KEY_APP_ID)
}

export function setWxAppId(wxid) {
  return Cookies.set(WX_OPEN_KEY_APP_ID, wxid)
}

export function removeWxAppId() {
  return Cookies.remove(WX_OPEN_KEY_APP_ID)
}
